#!/bin/bash
wget -O /root/mqttmonkey/config/config.yaml "https://gitee.com/to_the_sea/code/raw/master/config.yaml"
URL="192.168.20.91:8888"
statusCode="000"
while :
do
if [ ${statusCode} != "200" ]
then
	echo "${statusCode}"
	statusCode=$(curl -o /dev/null -s -w "%{http_code}\n" ${URL})
	sleep 1s
else
	echo "start test."
	break
fi
done
ulimit -n 5242880
cd /root/mqttmonkey
nohup ./mqttmonkey-linux device > /dev/null 2>&1 &

